<?php

/*
 * | Web Routes，模块用户
 * |--------------------------------------------------------------------------
 * |
 * | Here is where you can register web routes for your application. These
 * | routes are loaded by the RouteServiceProvider within a group which
 * | contains the "web" middleware group. Now create something great!
 * |
 */

Route::group([
    'prefix' => 'user',
    'namespace' => 'Web\User'
], function () {
    // 入口
    Route::get('/', 'IndexController@index')->name('user.index');
    // 登录
    Route::get('/sign_in', 'IndexController@signIn')->name('user.signIn');
    // 注册
    Route::get('/sign_up', 'IndexController@signUp')->name('user.signUp');
    // 退出
    Route::get('/sign_out', 'IndexController@signOut')->name('user.signOut');
    // Oauth回调
    Route::get('/oauth_callback', 'IndexController@oauthCallback')->name('user.oauthCallback');
});

